package org.dubbo.live.user.interfaces.provider.service;

import org.dubbo.live.user.dto.UserDTO;

import java.util.List;
import java.util.Map;

/**
 * @Author: 张广焱
 * @Date: 2024-03-29 7:33
 */
public interface IUserService {
    /**
     * @Description: 通过id查询用户
     * @Param: @param userId
     * @Author: 张广焱
     * @Date: 2024-03-31  12:57:41
     */
    UserDTO getByUserId(Long userId);

    /**
     * @Description: 用户信息更新
     * @Param: @param userDTO
     * @Author: 张广焱
     * @Date: 2024-03-31  12:58:12
     */
    boolean updateUserInfo(UserDTO userDTO);

    /**
     * @Description: 插入用户信息
     * @Param: @param userDTO
     * @Author: 张广焱
     * @Date: 2024-03-31  13:01:47
     */
    boolean insertOne(UserDTO userDTO);

    /**
     * @Description: 批量查询用户信息
     * @Param: @param userIdList
     * @Author: 张广焱
     * @Date: 2024-04-01  22:40:19
     */
    Map<Long,UserDTO> batchQueryUserInfo(List<Long> userIdList);

}
